//
//  HDGCustomSlider.h
//  DGCircleDemo
//
//  Created by HunDegong on 2024/12/6.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class HDGDragView;

@interface HDGCustomSlider : UIView

@property (nonatomic, weak, readonly) HDGDragView *leftDrag;
@property (nonatomic, weak, readonly) HDGDragView *rightDrag;
@property (nonatomic, weak, readonly) UIView *backgroundView;
@property (nonatomic, weak, readonly) UIView *foregroundView;

@property (nonatomic, assign) float minValue;
@property (nonatomic, assign) float maxValue;

@property (nonatomic, assign) float dragMinSpacing; ///< 两个拖拽控件间最小间隔，默认为30

@property (nonatomic, assign) float leftDragMaxValue; ///< 左侧拖动组件最大值
@property (nonatomic, assign) float rightDragMinValue; ///< 右侧拖动组件最小值

- (void)dragSliderHandler:(void(^)(float minValue, float maxValue))sliderHandler;

- (void)dragLeftSliderHandler:(void(^)(float minValue))leftSliderHandler;

- (void)dragRightSliderHandler:(void(^)(float maxValue))rightSliderHandler;

+ (CGFloat)defaultHeight;

@end

NS_ASSUME_NONNULL_END
